/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sml;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Jose Carlos Palma
 */
public class Keyboard {
    
    
    private static final BufferedReader br;
    
    static {
        br = new BufferedReader(new InputStreamReader( System.in ));
    }
    
    private Keyboard(){}
    
    public static int readInteger(String mess){
        System.out.print(mess);
        String retVal = null;
        try {
            retVal = br.readLine();
        } catch (IOException ex) {
            Logger.getLogger(Keyboard.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        return Integer.parseInt(retVal);
    }
}
